package saxion.speelveld.spaceengineer.buildings;

import saxion.speelveld.spaceengineer.R;
import saxion.speelveld.spaceengineer.model.ProducingBuilding;
import saxion.speelveld.spaceengineer.model.Resource;
import saxion.speelveld.spaceengineer.model.ResourceType;

public class Powerplant extends ProducingBuilding
{

	public Powerplant()
	{
		super(2, 2);
		super.setBuildingName(Powerplant.this.getClass().getSimpleName());
		super.setBuildingExplanation("The Powerplant generates power, this power is not very clean but it is stable.");
		super.resourceCosts.add(new Resource(ResourceType.MONEY, 150));
		super.resourceCosts.add(new Resource(ResourceType.WATER, 100));
		super.resourceCosts.add(new Resource(ResourceType.GLASS, 50));
		super.resourceCosts.add(new Resource(ResourceType.METAL, 100));

		super.addResourceProduceGain(new Resource(ResourceType.ELECTRICITY, 80, false));
		super.addResourceProduceCost(new Resource(ResourceType.HAPPINESS, 1, false));

		// Mitchell's Ideaj
		/**
		 * super.setResourcesProduced(ResourceType.ELECTRICITY); super.setResourcesProduced(ResourceType.HAPPINESS); if
		 * (super.getResourcesProduced() == ResourceType.ELECTRICITY) { super.setProductioncapacity(20); } if
		 * (super.getResourcesProduced() == ResourceType.HAPPINESS) { super.setProductioncapacity(-5); }
		 */

		super.resourceImages = new int[4];
		super.resourceImages[0] = R.drawable.powerplant_0;
		super.resourceImages[1] = R.drawable.powerplant_1;
		super.resourceImages[2] = R.drawable.powerplant_2;
		super.resourceImages[3] = R.drawable.powerplant_3;
		super.setPreviewResourceImageId(R.drawable.powerplant);
	}

	// @Override
	// public int produceGoods()
	// {
	// return 0;
	// }

}
